<?php


namespace app\admin\controller;


use app\admin\logic\AuthGroupLogic;

class AuthGroup extends AdminBase
{

    /**
     * @return \think\response\Json
     */
    public function getAuthGroupList()
    {
        return self::returnData(AuthGroupLogic::getAuthGroupList($this->params));
    }
    /**
     * @return \think\response\Json
     */
    public function getNoPageAuthGroupList()
    {
        return self::returnData(AuthGroupLogic::getNoPageAuthGroupList($this->params));
    }

    public function addAuthGroup()
    {
        return self::returnData(AuthGroupLogic::saveAuthGroup($this->params));
    }

    public function updateAuthGroup()
    {
        return self::returnData(AuthGroupLogic::saveAuthGroup($this->params));
    }

    /**
     * 删除 auth group
     * @return \think\response\Json
     */
    public function deleteAuthGroup()
    {
        return self::returnData(AuthGroupLogic::deleteAuthGroup($this->params));
    }
}
